package routes

import (
	"toolsweb-admin/handlers"

	"github.com/gin-gonic/gin"
)

func RegisterDocCategoryRoutes(router *gin.Engine) {
	categoryGroup := router.Group("/api/admin/doc-categories")
	{
		categoryGroup.GET("", handlers.ListDocCategories)
		categoryGroup.POST("", handlers.CreateDocCategory)
		categoryGroup.PUT("/:id", handlers.UpdateDocCategory)
		categoryGroup.DELETE("/:id", handlers.DeleteDocCategory)
		categoryGroup.GET("/:id/docs", handlers.GetCategoryDocuments)
	}
}
